package com.salt.core.qcc.config;

import com.salt.core.qcc.QccTemplate;
import com.salt.core.qcc.props.QccProperties;
import lombok.AllArgsConstructor;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description
 * @Author salt
 * @Date 2022/9/13
 * @Version 1.0.1
 */
@Configuration
@AllArgsConstructor
@EnableConfigurationProperties(QccProperties.class)
public class QccConfiguration {

    @Bean
    public QccTemplate qccTemplate(QccProperties qccProperties) {
        return new QccTemplate(qccProperties);
    }

}
